
function login() {

    var username = $("input[name='zhengjianhao']").val();
    var password = $("input[name='mima']").val();

    $.ajax({
        type: "post",
        url:  "/system/renyuan/login",
        data: {
            "zhanghao": username,
            "mima": password
        },
        success: function(r) {
            if (r.code == 0) {
                location.href = '/system/tianbao/fanninglist';
            } else {

                // $('.imgcode').click();
                // $(".code").val("");
                // $.modal.msg(r.msg);
                alert(r.msg);
            }
        }
    });
}

function login() {

    var username = $("input[name='zhengjianhao']").val();
    var password = $("input[name='mima']").val();

    $.ajax({
        type: "post",
        url: "/system/renyuan/login",
        data: {
            "zhanghao": username,
            "mima": password
        },
        success: function (r) {
            if (r.code == 0) {
                location.href = '/system/tianbao/fanninglist';
            } else {

                // $('.imgcode').click();
                // $(".code").val("");
                // $.modal.msg(r.msg);
                alert(r.msg);
            }
        }
    });


}
$(function(){
    login22();
})
function login22() {

    var username = $("input[name='zhengjianhao']").val();
    var password = $("input[name='mima']").val();

    $.ajax({
        type: "post",
        url: "/system/sysregion/regionlist",
        data: {},
        success: function (r) {
            if (r.code == 0) {
                //location.href = '/system/tianbao/fanninglist';
            } else {

                // $('.imgcode').click();
                // $(".code").val("");
                // $.modal.msg(r.msg);
                alert(r.msg);
            }
        }
    });
}




